# -*- coding: utf-8 -*-
"""
Web framework/Tornado Httpserver/test03.py
"""

import tornado.web
from tornado.ioloop import IOLoop
from tornado.httpserver import HTTPServer


class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        self.finish("This is get method.")


def main():
    return tornado.web.Application([
        (r"/", IndexHandler)
    ])


if __name__ == '__main__':
    app = main()
    sever = HTTPServer(app)
    sever.bind(8888)
    sever.start(1)
    IOLoop.current().start()
